#include "worker.h"
//老板类
class boss:public worker
{
public:
    boss(string name,int id,string deptip){
        this->deptip=deptip;
        this->id=id;
        this->name=name;
        this->worker_type="CEO";
    }
    //职工信息展示
    virtual void showinfo(){
        cout<<"姓名："<<this->name<<"  "
        <<"职工编号："<<this->id<<"  "
        <<"职工部门："<<this->deptip<<"  "
        <<"职工类型："<<this->worker_type<<endl;
    }
};